package org.agile2soft.nexoma.tapestry.encoder;

import org.agile2soft.nexoma.controller.RequestController;
import org.agile2soft.nexoma.entity.Request;
import org.hibernate.SessionFactory;

import br.com.arsmachina.module.service.PrimaryKeyTypeService;
import br.com.arsmachina.tapestrycrud.hibernate.encoder.HibernateIntegerEncoder;

public class RequestEncoder extends HibernateIntegerEncoder<Request> {


    public RequestEncoder(SessionFactory sessionFactory,
            RequestController controller) {
        super(sessionFactory, controller);
    }
//    public RequestEncoder(SessionFactory sessionFactory,
//            RequestController controller,
//            PrimaryKeyTypeService primaryKeyTypeService) {
//        super(sessionFactory, controller, primaryKeyTypeService);
//    }

    public String toLabel(Request request) {
        return String.valueOf(request.getId());
    }

}
